* {
    box-sizing: border-box;
}

view,
image,
text {
    box-sizing: border-box;
    flex-shrink: 0;
}

// Flexbox 布局工具类
.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-lr {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-l {
    display: flex;
    align-items: center;
}

.flex-r {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.flex-top-l {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.justify-evenly {
    justify-content: space-evenly;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.items-center {
    align-items: center;
}

.items-baseline {
    align-items: baseline;
}

.items-stretch {
    align-items: stretch;
}

.self-start {
    align-self: flex-start;
}

.self-end {
    align-self: flex-end;
}

.self-center {
    align-self: center;
}

.self-baseline {
    align-self: baseline;
}

.self-stretch {
    align-self: stretch;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-auto {
    flex: 1 1 auto;
}

.grow {
    flex-grow: 1;
}

.grow-0 {
    flex-grow: 0;
}

.shrink {
    flex-shrink: 1;
}

.shrink-0 {
    flex-shrink: 0;
}

// 定位工具类
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

// 文本工具类
.text-overflow {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

// 间距工具类
.mr16 {
    margin-right: 8px;
}

.ml10 {
    margin-left: 10px;
}

// 显示隐藏工具类
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

// 尺寸工具类
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

// 背景工具类
.bg-contain {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}

.bg-cover {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.bg-full {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: 0% 0%;
}